Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement RemoveUnusedImports rewrite. #166

Merged
merged 3 commits into from
May 27, 2017

Conversation

olafurpg
Copy link
Contributor

This rewrite does not group/sort/expand rewrites, only remove unused
imports. Supersedes #152

@olafurpg
Copy link
Contributor Author

Diff from running this rewrite on slick slick/slick#1736


touch scalafix-core/src/main/scala/scalafix/rewrite/${rewrite}.scala
touch scalafix-tests/input/src/main/scala/test/${rewrite}.scala
touch scalafix-tests/output/src/main/scala/test/${rewrite}.scala
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

This rewrite does not group/sort/expand rewrites, only remove unused
imports.
@olafurpg olafurpg merged commit 8d660fd into scalacenter:master May 27, 2017
@olafurpg olafurpg deleted the remove-unused-imports branch May 27, 2017 21:21
@dpennell
Copy link

I don't see this in 1.6 - is this intentional?

@olafurpg
Copy link
Contributor Author

@dpennell can you elaborate? This rule is included in both the current stable v0.5.10 release and also the latest v0.6 milestone.

@dpennell
Copy link

@olafurpg apologies - I've managed to cross-over from scalafmt to scalafix in my search.

bjaglin pushed a commit to liancheng/scalafix that referenced this pull request May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants